package GUI;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;
/**
  * @author Lucie
 * Class name  Managment_panel
 * extend  Abstract_Jpanel
 * purpose: this panel combines all the screens related to the management
 */
public class Managment_panel extends Abstract_Jpanel {

	/**
	 * Create the panel.
	 */
	public Worker_Details worker_deatails;
	public Update_Item_Details_Secondary update_item_details_sec;
	public Update_Member_Card_Secondary update_memmber_details_sec;
	public Update_Deatails_Book update_book_deatails;
													
	public Add_New_Item_Panel new_item;
	public Create_NewMember_panel new_memmber;
	
	public Add_a_Copy add_copy;
	
	public Managment_panel() {
		setLayout(null);
		add_copy = new  Add_a_Copy();
		new_item=new Add_New_Item_Panel();
		new_memmber=new Create_NewMember_panel();
		update_item_details_sec=new Update_Item_Details_Secondary();
		update_memmber_details_sec=new Update_Member_Card_Secondary();
		 worker_deatails=new Worker_Details();
		 update_book_deatails=new Update_Deatails_Book();
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(10, 11, 430, 264);
		add(tabbedPane);
		
		
		tabbedPane.addTab("update item deatails", null, update_item_details_sec, null);
		tabbedPane.addTab("update memmber card", null, update_memmber_details_sec, null);
		tabbedPane.addTab("worker deatails", null, worker_deatails, null);
		tabbedPane.addTab("update book deatails", null, update_book_deatails, null);
		tabbedPane.addTab("add new item", null, new_item, null);
		tabbedPane.addTab("add new memmber", null,new_memmber, null);
		
		 
		tabbedPane.addTab("add copy", null,  add_copy, null);

	}

	@Override
	public void next_screen() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void prev_screen() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void on_screen_load() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void on_screen_unload() {
		// TODO Auto-generated method stub
		
	}
}
